<#include "/macro.include"/>
<#include "/custom.include"/>  
<#assign className = table.className>   
<#assign classNameLower = className?uncap_first>
<#assign actionExtension = "do"> 
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="util" tagdir="/WEB-INF/tags" %>

<!DOCTYPE html>
<html>
	<head>
		<jsp:include page="/hiwetop_oper/head.jsp"></jsp:include>
		<title><#if (table.remarks?length>0)>${table.remarks} </#if>列表</title>
	</head>
	<body>
		<div class="bs-example">
			<form id="dataForm" action=""  method="post" class="form-horizontal">
	   			  <input type="hidden" id="${table.pkColumn.columnNameLower}" name="${table.pkColumn.columnNameLower}" value="<@jspEl  classNameLower+"."+table.pkColumn.columnNameLower/>">
		 		<#list table.notPkColumns?chunk(4) as row>
				<#list row as column>
				<#if !column.htmlHidden>	
				<#if (column.sqlTypeName == "BIGINT")>
				  <#if column.remarks?contains("(")>
				  <div class="form-group">
				    <label for="请输入${column.remarks?substring(0,column.remarks?index_of("("))}" class="col-sm-2 control-label">${column.remarks?substring(0,column.remarks?index_of("("))}</label>
				    <div class="col-sm-10">
				      <util:dateformat value="<@jspEl  classNameLower+"."+column.columnNameLower/>" />
				    </div>
				  </div>
				  <#else>
				  <div class="form-group">
				    <label for="请输入${column.columnAlias}" class="col-sm-2 control-label">${column.columnAlias}</label>
				    <div class="col-sm-10">
				      <util:dateformat value="<@jspEl  classNameLower+"."+column.columnNameLower/>" />
				    </div>
				  </div>
				  </#if>
				<#elseif column.remarks?index_of("dict")!=-1>
				 <div class="form-group">
				    <label for="请输入${column.remarks?substring(column.remarks?index_of("t")+	1,column.remarks?index_of("("))}" class="col-sm-2 control-label">${column.remarks?substring(column.remarks?index_of("t")+	1,column.remarks?index_of("("))}</label>
				    <div class="col-sm-10">
				    	<util:dict dictCode="${column.columnNameLower}" id="${column.columnNameLower}" value="<@jspEl  classNameLower+"."+column.columnNameLower/>" />
				    </div>
				  </div>
				<#else>
				  <#if column.remarks?contains("(")>
				  <div class="form-group">
				    <label for="请输入${column.remarks?substring(0,column.remarks?index_of("("))}" class="col-sm-2 control-label">${column.remarks?substring(0,column.remarks?index_of("("))}</label>
				    <div class="col-sm-10">
				      <input type="text" class="form-control" id="${column.columnNameLower}" name="${column.columnNameLower}" value="<@jspEl  classNameLower+"."+column.columnNameLower/>">
				    </div>
				  </div>
				  <#else>
				  <div class="form-group">
				    <label for="请输入${column.columnAlias}" class="col-sm-2 control-label">${column.columnAlias}</label>
				    <div class="col-sm-10">
				      <input type="text" class="form-control" id="${column.columnNameLower}" name="${column.columnNameLower}" value="<@jspEl  classNameLower+"."+column.columnNameLower/>">
				    </div>
				  </div>
				  </#if>
				</#if>
				</#if>
				</#list>
				</#list>	
			</form>
		</div>
	</body>
	<script type="text/javascript">
	var path = '<%=request.getContextPath()%>';
	
	$(function(){
		var dataForm = $('#dataForm');
		var nodesDomConf = {
			'NODE':{
				dis:[],
				hidden:[],
				directHidden:[],
				readOnly:['*']
			}
		}
		var validateRules = {
		}
		HIWETOP.ValidForm.initDomValidate(validateRules,dataForm,nodesDomConf);
	});
	</script>
</html>
